package hottargui.framework;

import java.util.*;

public class GameData {
	List<Tile> boardConfiguration;
	Map<PlayerColor, Player> players;
	int roundsLeft;
	
	Player currentPlayer;
	
	int lastDieRoll;
	
	public GameData()
	{
		boardConfiguration = new ArrayList<Tile>();
		players = new HashMap<PlayerColor, Player>();
	}
	
	public List<Tile> getBoardConfiguration()
	{
		return this.boardConfiguration;
	}
	
	public Player getPlayerInTurn()
	{
		return currentPlayer;
	}
	
	public PlayerColor setPlayerInTurn(PlayerColor newPlayerColor)
	{
		currentPlayer = players.get(newPlayerColor);
		return newPlayerColor;
	}
	
	public Map<PlayerColor, Player> getPlayers()
	{
		return players;
	}
	
	public int getRoundsLeft()
	{
		return roundsLeft;
	}
	
	public void setRoundsLeft(int newRoundsLeft)
	{
		roundsLeft = newRoundsLeft;
	}
	
	public void decreaseRoundsLeft()
	{
		roundsLeft--;
	}
	
	public void setLastDieRoll(int dieRoll)
	{
		lastDieRoll = dieRoll;
	}
	
	public int getLastDieRoll()
	{
		return lastDieRoll;
	}
}
